<?php

namespace app\common\validate\Product;

//引入底层的验证器类
use think\Validate;

/**
 * 订单验证器
 */
class ProductType extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'name' => 'require', //必填
        'weigh' => 'require', //必填
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'name.require'  => '商品分类名字未知',
        'weigh.require'  => '商品分类权重未知',
    ];

    /**
     * 验证场景
     */
    protected $scene = [];
}
